package com.example.nongye.http.server;

import androidx.annotation.NonNull;

import com.hjq.http.config.IRequestBodyStrategy;
import com.hjq.http.model.RequestBodyType;

/**
 *  测试环境
 *
 * @author Derek.Kidd
 * @version V1.0.0
 * @date 2022/2/19 15:26
 */
public class TestServer extends ReleaseServer {

    @Override
    public String getHost() {
        return ServerConstants.TEST_HOST;
    }

    @NonNull
    @Override
    public IRequestBodyStrategy getBodyType() {
        // 参数以 Json 格式提交（默认是表单）
        return RequestBodyType.FORM;
    }
}